<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewBillItemTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewBillItemLabel_idBillItem}"/>
                    <h:outputText value="#{billItemController.selected.idBillItem}" title="#{bundle.ViewBillItemTitle_idBillItem}"/>
                    <h:outputText value="#{bundle.ViewBillItemLabel_itemAmount}"/>
                    <h:outputText value="#{billItemController.selected.itemAmount}" title="#{bundle.ViewBillItemTitle_itemAmount}"/>
                    <h:outputText value="#{bundle.ViewBillItemLabel_itemPrice}"/>
                    <h:outputText value="#{billItemController.selected.itemPrice}" title="#{bundle.ViewBillItemTitle_itemPrice}"/>
                    <h:outputText value="#{bundle.ViewBillItemLabel_totalPrice}"/>
                    <h:outputText value="#{billItemController.selected.totalPrice}" title="#{bundle.ViewBillItemTitle_totalPrice}"/>
                    <h:outputText value="#{bundle.ViewBillItemLabel_itemEXPDate}"/>
                    <h:outputText value="#{billItemController.selected.itemEXPDate}" title="#{bundle.ViewBillItemTitle_itemEXPDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewBillItemLabel_packageCount}"/>
                    <h:outputText value="#{billItemController.selected.packageCount}" title="#{bundle.ViewBillItemTitle_packageCount}"/>
                    <h:outputText value="#{bundle.ViewBillItemLabel_exportBill}"/>
                    <h:outputText value="#{billItemController.selected.exportBill}" title="#{bundle.ViewBillItemTitle_exportBill}"/>
                    <h:outputText value="#{bundle.ViewBillItemLabel_itemID}"/>
                    <h:outputText value="#{billItemController.selected.itemID}" title="#{bundle.ViewBillItemTitle_itemID}"/>
                    <h:outputText value="#{bundle.ViewBillItemLabel_billID}"/>
                    <h:outputText value="#{billItemController.selected.billID}" title="#{bundle.ViewBillItemTitle_billID}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{billItemController.destroyAndView}" value="#{bundle.ViewBillItemDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewBillItemEditLink}"/>
                <br />
                <h:commandLink action="#{billItemController.prepareCreate}" value="#{bundle.ViewBillItemCreateLink}" />
                <br />
                <h:commandLink action="#{billItemController.prepareList}" value="#{bundle.ViewBillItemShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewBillItemIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
